package com.chenyongjing.design.pattern.singleton.hungrySingleton;

/**
 * 饿汉式单例模式
 */
public class HungrySingleton {
    // 实例化对象
    private static final HungrySingleton hungrySingleton  = new HungrySingleton();

    private HungrySingleton(){}

    public static HungrySingleton getInstance(){
        return hungrySingleton;
    }
}
